package com.fuhaiwei.domain.dao;

import java.util.List;

import org.hibernate.Transaction;

import com.fuhaiwei.domain.model.User;

public interface UserDao {

	public void save(User user);

	public User get(int id);

	public List findByUsername(String username);

	public List findAll();

	public void update(User user);

	public void delete(int id);

	public void delete(User user);

	public Transaction beginTransaction();
	
	public void closeSession();

}